---
layout: "default"
title: "Operator: /="
description: "Swift documentation for the '/=' operator."
root: "/v2.2"
---

<code class="language-swift">infix operator /= {
    associativity right
    precedence 90
    assignment
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-slasheq-inout_-double-rhs_-double">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-slasheq-inout_-double-rhs_-double">func /=(<wbr>inout:<wbr> Double, rhs: Double)</a>
        
<div class="comment collapse" id="comment-func-slasheq-inout_-double-rhs_-double"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func /=(inout lhs: Double, rhs: Double)</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-slasheq-inout_-float-rhs_-float">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-slasheq-inout_-float-rhs_-float">func /=(<wbr>inout:<wbr> Float, rhs: Float)</a>
        
<div class="comment collapse" id="comment-func-slasheq-inout_-float-rhs_-float"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func /=(inout lhs: Float, rhs: Float)</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-slasheq-inout_-float80-rhs_-float80">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-slasheq-inout_-float80-rhs_-float80">func /=(<wbr>inout:<wbr> Float80, rhs: Float80)</a>
        
<div class="comment collapse" id="comment-func-slasheq-inout_-float80-rhs_-float80"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func /=(inout lhs: Float80, rhs: Float80)</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-slasheq-t_-integerarithmetictype-inout_-t-rhs_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-slasheq-t_-integerarithmetictype-inout_-t-rhs_-t">func <wbr>/= &lt;T : _IntegerArithmeticType&gt;(<wbr>inout:<wbr> T, rhs: T)</a>
        
<div class="comment collapse" id="comment-func-slasheq-t_-integerarithmetictype-inout_-t-rhs_-t"><div class="p">
    <p>Divides <code>lhs</code> and <code>rhs</code> and stores the result in <code>lhs</code>, trapping in
case of arithmetic overflow (except in -Ounchecked builds).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func /=&lt;T : _IntegerArithmeticType&gt;(inout lhs: T, rhs: T)</code>
    
    
</div></div>
</div>
